package cqrtplm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cqrtplm.entity.RtCfgStatusInfodetailDO;
import cqrtplm.service.RtCfgStatusInfodetailService;
import cqrtplm.mapper.RtCfgStatusInfodetailMapper;
import cqrtplm.vo.InfoDetailSameModelVO;
import cqrtplm.vo.StatusInfoDetailContentVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
* @author 博
* @description 针对表【RT_CFG_STATUS_INFODETAIL】的数据库操作Service实现
* @createDate 2025-06-30 22:08:34
*/
@Service
public class RtCfgStatusInfodetailServiceImpl extends ServiceImpl<RtCfgStatusInfodetailMapper, RtCfgStatusInfodetailDO>
    implements RtCfgStatusInfodetailService {
    @Resource
    private RtCfgStatusInfodetailMapper rtCfgStatusInfodetailMapper;


    @Override
    public List<RtCfgStatusInfodetailDO> selectByInfoId(String statusid) {
        return rtCfgStatusInfodetailMapper.selectByStatusId(statusid);
    }

    @Override
    public Long batchRtCfgStatusInfodetail(List<RtCfgStatusInfodetailDO> rtCfgStatusInfodetailDOS) {
        return rtCfgStatusInfodetailMapper.batchInsertRtCfgStatusInfodetail(rtCfgStatusInfodetailDOS);
    }

    @Override
    public int updateRtCfgStatusInfodetail(RtCfgStatusInfodetailDO detailToUpdate) {
        return rtCfgStatusInfodetailMapper.updateRtCfgStatusInfodetail(detailToUpdate);
    }


    @Override
    public List<StatusInfoDetailContentVO> selectBySubtypeAndProductType(Integer subType, String productType) {
        return rtCfgStatusInfodetailMapper.selectBySubtypeAndProductType(subType,productType);
    }
}




